<script setup>
import { ref } from "vue";

const var1 = ref(0);
const var2 = ref("你好啊张亮");
const sonMethod = () => {
  console.log("子组件方法");
};

defineExpose({
  var1,
  var2,
  sonMethod,
});
</script>

<template>
  <div></div>
</template>

<style scoped lang="scss"></style>
